/*
 * @Author: Wangtao
 * @Date: 2022-08-29 09:35:38
 * @LastEditors: Wangtao
 * @LastEditTime: 2022-09-01 18:52:59
 */
// 此文件为缓存的映射关系，下面的key是啥，pinna里面的数据也是啥。
export const cacheJson: any = {
  userCache: '/platform/action/agent/cache', // 员工
  groupCache: '/platform/action/group/cache', // 服务组
  globalFieldCache: '/platform/action/global-field/cache', // 全局字段
  dyForm: '/platform/action/dynamic-form/cache', // 动态表单
  cusInfo: '/crm/action/customer/cache', // 客户信息
  region: '/platform/public/region', // 地区
  voiceLibrary: '/call/web/call/action/ivr/voice-library/all/cache', // 语音库
  serveNum: '/call/web/call/action/config/number/service/all/cache', // 服务号
  explicNum: '/call/web/call/action/config/number/display/all/cache', // 外显号
  sipNum: '/call/web/call/action/sip/cache', // sip号
  serviceTime: '/platform/action/servicetime/cache', // 服务时间
  ivrNav: '/call/web/call/action/config/ivr/all/cache', // 语音导航
  serviceLabels: '/platform/action/service-label/cache' // 服务标签
}

export type CacheType =
  | 'userCache'
  | 'groupCache'
  | 'globalFieldCache'
  | 'dyForm'
  | 'cusInfo'
  | 'region'
  | 'voiceLibrary'
  | 'serveNum'
  | 'explicNum'
  | 'sipNum'
  | 'serviceTime'
  | 'ivrNav'
  | 'serviceLabels'
